I'm attempting to use PyQt4 to build an interactive image quantizer and I seem to be stuck at the point where the image needs to be refreshed. The temp.jpg file is updated after the refresh call by self._MiniKMeans.updateImage(imgPath1, self.K). I have also verified that the proper values of K are being passed from the slider into refreshImage().
################################################ ## This does not update as expected # Reload images pixmapr1 = QtGui.QPixmap(imgPath1) self.imageLabel1.setPixmap(pixmapr1)